interface IP {
    name: string;
    say?: () => void;
}

class p implements IP {
    name: string;
    say(): void {

    };
    constructor() {

    }
}